#ifndef INCLUDE_SAVETY_SHA1_HPP
#define INCLUDE_SAVETY_SHA1_HPP

#include <cstdint>


namespace robos {
    typedef struct SHA1_context{
      uint32_t state[5];
      uint32_t count[2];
      uint8_t  buffer[64];
    } s_sha1ctx;
    
#define SHA1_DIGEST_SIZE 20
    
    void sha1Init(s_sha1ctx*);
    void sha1Update(s_sha1ctx*, const uint8_t*, const size_t);
    void sha1Final(s_sha1ctx*, uint8_t digest[SHA1_DIGEST_SIZE]);
}
#endif
   
